//
//  PriceCell.m
//  住房条件帅选器
//
//  Created by MB__Lee on 2018/5/16.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "PriceCell.h"

@interface PriceCell()
@property (weak, nonatomic) IBOutlet UILabel *priceLabel;

@property (weak, nonatomic) IBOutlet UIImageView *imgV;

@end

@implementation PriceCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setPriceModel:(PriceModel *)priceModel{
    _priceModel = priceModel;
    
    self.priceLabel.text = priceModel.name;
    self.imgV.hidden = !priceModel.hasRight;
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    if (selected) {
        self.priceLabel.textColor  = MB_RGBA(63, 171, 250, 1.0);
    }else if (!selected){
        self.priceLabel.textColor = MB_RGBA(51, 51, 51, 1.0);
    }
    
    
    // Configure the view for the selected state
}

@end
